package cn.myframe.service.sys.impl;

import cn.myframe.dao.sys.SysRoleCompanyDao;
import cn.myframe.entity.sys.SysRoleCompanyEntity;
import cn.myframe.service.BaseServiceImpl;
import cn.myframe.service.sys.SysRoleCompanyService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service("sysRoleCompanyService")
public class SysRoleCompanyServiceImpl extends
        BaseServiceImpl<SysRoleCompanyDao,SysRoleCompanyEntity>
        implements SysRoleCompanyService {


    @Override
    public List<Long> selectCompanyList(Long roleId) {
        return baseMapper.selectCompanyList(roleId);
    }

    @Override
    public Set<Long> findCompanyIdsByRoleIds(List<Long> roleIdList) {
        return baseMapper.findCompanyIdsByRoleIds(roleIdList);
    }
}

